package com.cb.dao;

import com.cb.pojo.FilmAccess;
import com.cb.pojo.OrderList;
import com.cb.pojo.User;
import org.springframework.core.annotation.Order;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

@Component
public interface UserDao {
    int userInsert(User user);

    void filmaccess(FilmAccess filmAccess);

    int selectFilmAccessnumber(FilmAccess filmAccess);

    User login(String username);

    User selectPhoneUser(String phone);

    double selectVipPrice(String yyid);

    User yzZzid(String username);

    Date selectEndTime(@Param("yyid") String yyid, @Param("username") String username);

    int updateuservip(@Param("yyid") String yyid, @Param("username") String username, @Param("begintime") Date begintime, @Param("endtime") Date endtime);

    int realNameSystem(String username, String zzid, String name);

    Date selectEndVipTime(String username);

    User selectUser(String username);

    List<OrderList> selectOrderListByUserName(String userName);

    int insertVip(String yyid,String userName,Date beginTime,Date endTime);

    Date selectbegin(String yyid,String userName);

    int updateUserPassword(String username,String password);
}
